package com.xr.core.system.common.constants;

/**
 * 正则表达式
 */
public class Regular {

    public static final String PASSWORD = "^(?!\\d+$)[\\da-zA-Z]{8,16}$";

    public static final String PASSWORD_MASSAGE = "密码必须为8-16大小写字母和数字(不能是纯数字)!";

    public static final String ACCOUNT = "^(?!\\d+$)[\\da-zA-Z]{8,16}$";

    public static final String ACCOUNT_MASSAGE = "账户必须为8-16大小写字母和数字(不能是纯数字)!";

    public static final String PERMISSION = "^[A-Z:]{1,20}$";

    public static final String PERMISSION_MASSAGE = "权限code必须为1-20的大写字母和符号':'组合!";

    public static final String ROLE = "^[A-Z]{1,20}$";

    public static final String ROLE_MASSAGE = "角色code必须为1-20的大写字母!";

    public static final String RANGE = "^([0-9]{1,2}|100)$";

    public static final String RANGE_MASSAGE = "只可以输入0-100的整数!";

}
